﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ResXEditor.ascx.cs" Inherits="ResxWebEditor.Editor.ResXEditor" %>

<div style="position:relative;">
    <div class="EditorHeader" style="width: auto;"><asp:Literal ID="Literal2" runat="server" meta:resourcekey="Literal2Resource1">Select File: </asp:Literal></div>
	<div class="EditorPanel" style="clear: both; width: auto;">
		<div style="float: left;">
			<asp:ListBox ID="lstResX" runat="server" AutoPostBack="True" Height="150px" onselectedindexchanged="lstResX_SelectedIndexChanged" Width="350px" meta:resourcekey="lstResXResource1" />
		</div>
		<br />
		<asp:Panel ID="pnlAddLang" runat="server" Visible="False" style="float:right; margin-right: 15px;" meta:resourcekey="pnlAddLangResource1">
			<asp:Literal ID="Literal1" runat="server" Text="Add new language:" meta:resourcekey="Literal1Resource1" /><br />
			<asp:DropDownList ID="ddLanguage" runat="server" meta:resourcekey="ddLanguageResource1" CssClass="DDLanguage" />
			<asp:Button ID="btAddLang" runat="server" onclick="btAddLang_Click" OnClientClick="this.disable=true;" Enabled="true" Text="Add" meta:resourcekey="btAddLangResource1" />
			<br />
			<br />
			<asp:CheckBox ID="chShowEmpty" runat="server" Text="Show empty strings" Checked="false" AutoPostBack="true" OnCheckedChanged="OnShowEmpty" />
		</asp:Panel>
		<br style="clear:both" />
		<table style="width: 100%;">
			<tr>
				<td>
					<h2 class="FileNameToTranslate"><asp:HyperLink runat="server" ID="hplFileName"></asp:HyperLink></h2>
					<resx:BulkEditGridViewEx id="gridView" runat="server" GridLines="Both" Width="1000" CssClass="GridViewTranslate" AutoGenerateColumns="False" EnableInsert="False" onrowdatabound="GridView_RowDataBound" SaveButtonID="btSave" DataKeyNames="Key" onrowupdating="gridView_RowUpdating" OnSaved="gridView_Saved" InsertRowCount="1" meta:resourcekey="gridViewResource1"  PageSize="1000"/>
					<br />
					<asp:Button ID="btSave" runat="server" Text="Save" Visible="False" meta:resourcekey="btSaveResource1" /><br />
					<br />
					<asp:Panel ID="pnlMsg" runat="server" EnableViewState="false" Visible="false" meta:resourcekey="pnlMsgResource1">
						<asp:MultiView ID="MultiViewMsg" runat="server">
							<asp:View ID="View1" runat="server">
								<asp:Image ID="imgResult" runat="server" ImageUrl="~/images/tick.png" meta:resourcekey="imgResultResource1" />
							</asp:View>
							<asp:View ID="View2" runat="server">
								<asp:Image ID="Image1" runat="server" ImageUrl="~/images/exclamation.png" meta:resourcekey="Image1Resource1" />
							</asp:View>
						</asp:MultiView>
						<asp:Label ID="lblMsg" runat="server" style="padding-left: 10px; position:relative; top: -5px;" meta:resourcekey="lblMsgResource1" />
					</asp:Panel>
				</td>
			</tr>
		</table>
	</div>
</div>